package nameless.aistudy.domain.service.user;


import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import nameless.aistudy.common.exception.BusinessException;
import nameless.aistudy.domain.model.user.User;
import nameless.aistudy.domain.service.user.dto.RegisterRequest;

public interface UserAuthService extends IService<User> {
    int getUserIdFromRequest(HttpServletRequest request);
    boolean register(RegisterRequest registerRequest) throws BusinessException;
    User login(String usernameOrPhone, String password);
    boolean sendVerificationCode(String phone);
}

